package parts3.lesson27;

//是一个线程的主体类
public class MyThread extends Thread {
    private String title;

    public MyThread(String title) {
        this.title = title;
    }

    @Override
    public void run() {//所有线程的执行从此处开始
        for (int x = 0; x < 10; x++) {
            System.out.println(this.title + ",x=" + x);
        }
    }
}
